<?php 
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<form method="post" action="?m=teacherinfo&c=teacherinfo&a=edit&id=<?php echo $_GET['id']?>" name="myform" id="myform">
<table class="table_form" width="100%">
<tbody>

	<tr>
		<th width="100"><strong><?php echo "教师姓名："?></strong></th>
		<td><input name="teacherinfo[username]" id="username" value="<?php echo htmlspecialchars($an_info['username'])?>" class="input-text" type="text" size="50" ></td>
	</tr>
	<tr>
		<th><strong><?php echo "工号："?></strong></th>
		<td><input name="teacherinfo[number]" id="number" value="<?php echo htmlspecialchars($an_info['number'])?>" class="input-text" type="text" size="20" ></td>
	</tr>
	<tr>
		<th><strong><?php echo "密码："?></strong></th>
		<td><input name="teacherinfo[password]" id="password" value="<?php echo htmlspecialchars($an_info['password'])?>" class="input-text" type="text" size="20" ></td>
	</tr>
	<tr>
		<th><strong><?php echo "专业："?></strong></th>
		<td><input name="teacherinfo[major]" id="major" value="<?php echo htmlspecialchars($an_info['major'])?>" class="input-text" type="text" size="20" ></td>
	</tr>
	<tr>
		<th><strong><?php echo "类型："?></strong></th>
		 <td><?php
			$type=array("请选择","汽车检测与维修技术","汽车技术服务与营销","汽车制造与装配技术","汽车电子技术","机动车保险实务（查勘定损方向）","工程机械运用与维护");
		 echo form::select($type, htmlspecialchars($an_info['type']), 'name="teacherinfo[type]"')?> 
		 </td>
	</tr>
	<tr>
		<th><strong><?php echo "批次："?></strong></th>
		<td><input name="teacherinfo[batch]" id="batch" value="<?php echo htmlspecialchars($an_info['batch'])?>" class="input-text" type="text" size="20" ></td>
	</tr>
    </tbody>
</table>
<input type="submit" name="dosubmit" id="dosubmit" value=" <?php echo L('ok')?> " class="dialog">&nbsp;<input type="reset" class="dialog" value=" <?php echo L('clear')?> ">
</form>
</div>
</body>
</html>
<script type="text/javascript">
function load_file_list(number) {
	$.getJSON('?m=admin&c=category&a=public_tpl_file_list&style='+number+'&module=teacherinfo&templates=show&name=teacherinfo&pc_hash='+pc_hash, function(data){$('#show_template').html(data.show_template);});
}

);
</script>